# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=phosh-mobile-settings
pkgver=0.34.0
pkgrel=0
pkgdesc="Settings app for mobile specific things"
url="https://gitlab.gnome.org/guidog/phosh-mobile-settings"
# blocked by phosh
arch="all !armhf !s390x !ppc64le"
license="GPL-3.0-or-later"
makedepends="
	desktop-file-utils
	glib-dev>=2.62
	gsound-dev
	gtk4.0-dev
	json-glib-dev
	libadwaita-dev
	lm-sensors-dev
	meson
	phosh-dev
	"
subpackages="$pkgname-lang"
source="https://sources.phosh.mobi/releases/phosh-mobile-settings/phosh-mobile-settings-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
42d637bec9bd3cacda976d7720e1e79bbc378708099d2134fa20a6c19972eae94ac1859c58518bedad809670caa9e43e86d6d85e77972b6a2aec401f89860c3a  phosh-mobile-settings-0.34.0.tar.xz
"
